﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Learn202001.Models.EF;

namespace Learn202001.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
        public ActionResult Test()
        {
            var listOfStudents = new List<Student>();

            listOfStudents.Add(new Student()
            {
                Name="张三",
             Birthday = DateTime.Parse("02/03/2000")

            });

            listOfStudents.Add(new Student()
            {
                Name = "李四",
                Birthday=DateTime.Parse("04/08/2000")
            });
            return View(listOfStudents);
        }
    }
}